<?php
/**
 * Created by cmb_weixin.master.
 * File: UserApply.php
 * User: xuewl
 * Date: 2017/12/17
 * Time: 15:17
 */

namespace app\user\validate;


class UserDistributor extends \think\Validate
{
    protected $rule = [
        'uid' => 'require',
        'name' => 'require|max:100',
        'address' => 'require|max:200',
        'license_pic' => 'require',
        'idcard_pic' => 'require',
        'works_pic' => 'max:200',
        'cumtomer_id' => 'number'
    ];

    protected $scene = [
        'apply' => ['uid', 'name', 'address', 'license_pic', 'idcard_pic', 'works_pic', 'cumtomer_id'],
    ];
}